package main;

import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import util.FxmlUtil;

import java.util.Objects;

public class MainLaunch extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        Parent root = FXMLLoader.load(Objects.requireNonNull(Thread.currentThread().getContextClassLoader().getResource("fxml/login.fxml")));
        primaryStage.setTitle("ATM - 登录");
        Scene scene = new Scene(root);
        primaryStage.setScene(scene);
        primaryStage.show();

        FxmlUtil.SCENE.put("login", scene);
    }
}
